//2009/07/27 17:44:02
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>

using namespace std;

class MostProfitable
{
public:
    string bestItem(vector <int> costs, vector <int> prices, vector <int> sales, vector <string> items)
    {
        int index = -1;
		int score = 0;
        for (int i=0; i<costs.size(); i++)
        {
            if (prices[i] > costs[i])
            {
                int mount = (prices[i] - costs[i]) * sales[i];
				if(score < mount)
				{
					score = mount;
					index = i;
				}
            }
        }
		if(index == -1)
			return "";
		else
			return items[index];
    }
};
